package com.macroye.consumer.service.impl;

import com.macroye.consumer.mapper.UserMapper;
import com.macroye.consumer.service.UserService;
import com.macroye.entity.req.ConsumerLoginVo;
import com.macroye.result.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserMapper userMapper;

    /**
     * 查找消费者
     * @param consumerLoginVo
     * @return
     */
    @Override
    public Result<ConsumerLoginVo> consumerLogin(ConsumerLoginVo consumerLoginVo) {
        ConsumerLoginVo consumerLoginVo1 = userMapper.consumerLogin(consumerLoginVo);
        return Result.success(consumerLoginVo1);
    }
}
